/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.yournamehere.client;

import com.google.gwt.user.client.ui.*;

/**
 *
 * @author D4v1D
 */
public class SudokuDialog extends DialogBox{
    public SudokuDialog(String message) {
        // Set the dialog box's caption.
        setText(message);
        setWidget(new Label(message));
        this.addStyleName("dialog");

        // DialogBox is a SimplePanel, so you have to set its widget property to
        // whatever you want its contents to be.
        Button ok = new Button("OK");
        ok.addClickListener(new ClickListener() {
        public void onClick(Widget sender) {
          SudokuDialog.this.hide();
        }
        });
        this.setPopupPosition(450, 70);

        setWidget(ok);
    }
}
